#!/usr/bin/env python2.7
# -*- coding: UTF-8 -*-

#页面下载模块

import urllib2

class HtmlDownloader(object):

    def download(self, url):
        if url is None:
            return None
        response = urllib2.urlopen(url)
        if response.getcode() != 200:
            return None
        return response.read()
